﻿// $ PURE $ // class name and mean

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace CodeTable
{
    partial class GridView
    {
        public class Block : PictureBox
        {
            private Point gridCoordinate;

            public Block(Bitmap image, Point gridCoordinate) : base()
            {
                this.SizeMode = PictureBoxSizeMode.AutoSize;
                this.GridCoordinate = gridCoordinate;
                this.Image = image;
            }

            public Point GridCoordinate
            {
                get
                {
                    return gridCoordinate;
                }
                set
                {
                    gridCoordinate = value;
                }
            }

            // TODO: update Grid after OnImageChanged
        }
    }

}
